/**
* @file RobotMessages.h in RobotConrol
* @author rebeater
* @comment
* Create on 11/6/21 1:35 PM
* @version 1.0
**/

#ifndef ROBOTCONROL__ROBOTMESSAGES_H_
#define ROBOTCONROL__ROBOTMESSAGES_H_
using RobotMessageID = uint32_t;
/*enum RobotMessageID{
  RobotVersion = 0x0C,
  RobotStatus = 0x01,
  RobotVelocity = 0x02,
  RobotDriverStatus1 = 0x03,
  RobotDriverStatus2 = 0x04,
  RobotDriverStatus3 = 0x05,
  RobotDriverStatus4 = 0x06,
  RobotEngineStatus1 = 0x07,
  RobotEngineStatus2 = 0x08,
  RobotEngineStatus3 = 0x09,
  RobotEngineStatus4 = 0x0a,
  RobotLedStatus = 0xa1,
  RobotOdometer = 0xa2,
};*/
enum RobotMessageType{
  RobotControl = 0x55,
  RobotFeedback = 0xAA,
  };
class RobotMessage{
 private:
  static const int MAX_MSG_LENGTH = 128;
 public:
  RobotMessageType type_{RobotFeedback};
  RobotMessageID id_{};
  unsigned int length{0};
  uint8_t data[MAX_MSG_LENGTH]{};
};
#endif //ROBOTCONROL__ROBOTMESSAGES_H_
